export default {
    Formdatafun:(data)=>{
        const obj = new FormData();
        for (const key in data) {
            if (key == 'file' || key == 'rectificationFile') {
                data[key].length ? data[key].forEach(e => obj.append(key, e.raw ? e.raw : e)) : "";
            } else {
                if (data[key] != null) {
                    obj.append(key, data[key])
                }
    
            }
    
        }
        return obj
    }
};